//
//  YLMemberLevelModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/10/17.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLMemberLevelModel.h"

@implementation YLMemberLevelModel

- (void)setNextInterestRate:(CGFloat)nextInterestRate
{
    _nextInterestRate = nextInterestRate;
    
    if (nextInterestRate < 10000) {
        _showNextInterestRate = [NSString stringWithFormat:@"%.2f", nextInterestRate];
    } else {
        _showNextInterestRate = [NSString stringWithFormat:@"%.2f万", nextInterestRate / 10000.0];
    }
}


- (void)setYearInterestRate:(CGFloat)yearInterestRate
{
    _yearInterestRate = yearInterestRate;
    
    if (yearInterestRate < 10000) {
        _showYearInterestRate = [NSString stringWithFormat:@"%.2f", yearInterestRate];
    } else {
        _showYearInterestRate = [NSString stringWithFormat:@"%.2f万", yearInterestRate / 10000.0];
    }
}

- (void)setLevelIcon:(NSString *)levelIcon
{
    _levelIcon = levelIcon;
    
    
    _levelIcon = [NSString stringWithFormat:@"%@%@", YLImageURL, levelIcon];
}


@end
